import { MONITOR } from "@/api/config/servicePort";
import http from "@/api";
import { ResPage } from "@/api/interface";
/**
 * @name 运维监控模块
 */
// 总体告警监控
export const getAlarmOverviewList = (params?: object) => {
  return http.get<ResPage<any>>(MONITOR + `/operation/alarm_overview/`, params);
};
// 告警源监控
export const getAlarmSourceList = (params?: object) => {
  return http.get(MONITOR + `/operation/alarm_source/`, params);
};
// 第三方监控
export const getAppConditionList = (params?: object) => {
  return http.get(MONITOR + `/operation/app_condition/`, params);
};
// 容量监控
export const getCapacityList = (params?: object) => {
  return http.get(MONITOR + `/operation/capacity/`, params);
};
// 系统名称列表
export const getSystemNamesList = (params?: object) => {
  return http.get<any>(MONITOR + `/operation/overview_alarm_system_names/`, params);
};
// 告警系统类型列表
export const getResourceTypes = () => {
  return http.get<any>(MONITOR + `/operation/resource_types/`);
};
